﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using esri.ParaSeting;

namespace esri
{
    public partial class Form3 : Form
    {
        public Form3()
        {
            InitializeComponent();
        }

        public void Initialize()
        {
            Paraseting PS = Paraseting.Instance();
            textBox5.Text = (PS.MaxSpeed*3.6).ToString();
            textBox3.Text = PS.AngleError.ToString();
            textBox4.Text = PS.RollDirection.ToString();
            textBox6.Text = (PS.MinSpeed * 3.6).ToString();
            textBox2.Text = PS.RollTimes.ToString();
            textBox7.Text = PS.RollWidth.ToString();

            textBox2.Enabled = false;
            textBox3.Enabled = false;
            textBox4.Enabled = false;
            textBox5.Enabled = false;
            textBox6.Enabled = false;
            textBox7.Enabled = false;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
